﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebQQ2.DLL
{
    /// <summary>
    /// 2011-1-5
    /// by hackren
    /// Email:hackren@vip.qq.com
    /// </summary>
    public class Friend
    {
        private int groupId;

        public int GroupId
        {
            get { return groupId; }
            set { groupId = value; }
        }

        private string uin;

        public string Uin
        {
            get { return uin; }
            set { uin = value; }
        }

        //private string name;

        //public string Name
        //{
        //    get { return name; }
        //    set { name = value; }
        //}

        private string faceImg;

        public string FaceImg
        {
            get { return faceImg; }
            set { faceImg = value; }
        }

        /// <summary>
        /// 未知
        /// </summary>
        public string Mflag { get; set; }
        /// <summary>
        /// 客户的状态
        /// </summary>
        public string Client_type { get; set; }
        /// <summary>
        /// QQ 的昵称
        /// </summary>
        public string Nick { get; set; }

        private string cardName;
        /// <summary>
        /// 在群中显示的名字
        /// </summary>
        public string CardName
        {
            get
            {
                if (string.IsNullOrEmpty(cardName))
                {
                    cardName = this.Nick;
                }
                return cardName;
            }
            set { cardName = value; }
        }

        /// <summary>
        /// 另一种 形式的QQ号
        /// </summary>
        public string TempUin { get; set; }
    }
}


//<script>
//{"ginfo":
//{"gid":2159231485,"code":2347963276,"flag":16777217,
//"owner":567718161,"option":2,"createtime":1283567199,
//"class":175,"name":"广之缘",
//"level":0,"face":2,
//"memo":"2010已经过去，2011年已经到来，朋友们，我们一起过个欢乐年吧！有兴趣的朋友们，一起来参加“我们一起迎新",
//"fingermemo":"",
//"members":
//[{"muin":3843984648,"mflag":0},
//{"muin":1900646994,"mflag":21},
//{"muin":4157786372,"mflag":12},
//{"muin":251269684,"mflag":0},
//{"muin":342471680,"mflag":0},
//{"muin":84028737,"mflag":0},
//{"muin":87820977,"mflag":0},
//{"muin":3036772522,"mflag":0},
//{"muin":2493016614,"mflag":12},
//{"muin":1198471252,"mflag":0},
//{"muin":567718161,"mflag":4},
//{"muin":2794834450,"mflag":20},
//{"muin":4054723112,"mflag":0},
//{"muin":2097881801,"mflag":0},
//{"muin":157305847,"mflag":4},
//{"muin":504386323,"mflag":0},
//{"muin":404313364,"mflag":28},
//{"muin":674364208,"mflag":0},
//{"muin":1166228224,"mflag":20},
//{"muin":172659991,"mflag":0},
//{"muin":1622618366,"mflag":0},
//{"muin":32760643,"mflag":0},
//{"muin":4030363264,"mflag":0},
//{"muin":2575498892,"mflag":0},
//{"muin":2635963960,"mflag":5},
//{"muin":1780089063,"mflag":0},
//{"muin":1518452398,"mflag":0},
//{"muin":2996143490,"mflag":13},
//{"muin":419574975,"mflag":12},
//{"muin":20415785,"mflag":28},
//{"muin":924992046,"mflag":0},
//{"muin":1550532843,"mflag":0},
//{"muin":2053761603,"mflag":0},
//{"muin":2021675475,"mflag":0},
//{"muin":2656238480,"mflag":12},
//{"muin":1027484142,"mflag":0}],
//"markname":""},

//"minfo":[{"uin":3843984648,"nick":"构成"},
//{"uin":1900646994,"nick":"____′↘悸沫"},
//{"uin":4157786372,"nick":"~﹊や┢┦aｐ"},
//{"uin":251269684,"nick":"一颗红豆丶　　　　　　　"},
//{"uin":342471680,"nick":"一颗绿豆丶　　　　　　　"},
//{"uin":84028737,"nick":"/db梦醒之后"},
//{"uin":87820977,"nick":"     "},
//{"uin":3036772522,"nick":"蒽.ηǐ芣乖 "},
//{"uin":2493016614,"nick":"Mody"},
//{"uin":1198471252,"nick":"梦幻星空"},
//{"uin":567718161,"nick":"笑，你最美！"},
//{"uin":2794834450,"nick":"望穿秋水"},
//{"uin":4054723112,"nick":"狮子的雪橇"},
//{"uin":2097881801,"nick":"/dx颩中忧郁"},
//{"uin":157305847,"nick":"、内伤,.致命"},
//{"uin":504386323,"nick":"念无界"},
//{"uin":404313364,"nick":"冰水"},
//{"uin":674364208,"nick":"笑着遗忘/mt"},
//{"uin":1166228224,"nick":"☆靈☆←燕飛"},
//{"uin":172659991,"nick":"深蓝色"},
//{"uin":1622618366,"nick":"ヅo湁栺相漣"},
//{"uin":32760643,"nick":"回憶、那麽濃"},
//{"uin":4030363264,"nick":"、最后的风度"},
//{"uin":2575498892,"nick":"•JS"},
//{"uin":2635963960,"nick":"寻找·真"},
//{"uin":1780089063,"nick":"メ尐瓶★蓋♀"},
//{"uin":1518452398,"nick":"%雨&amp"},
//{"uin":2996143490,"nick":"狮子的心"},
//{"uin":419574975,"nick":"ヅo湁栺緊釦"},
//{"uin":20415785,"nick":"寻找风的感觉"},
//{"uin":924992046,"nick":"阿门~保佑我"},
//{"uin":1550532843,"nick":"メ哒★哒♂"},
//{"uin":2053761603,"nick":"Tiportoviaツ"},
//{"uin":2021675475,"nick":"④旪愺"},
//{"uin":2656238480,"nick":" ★★★★★"},
//{"uin":1027484142,"nick":"赏新客"}],
//"stats":
//[{"uin":3036772522,"stat":10,"client_type":1},
//{"uin":2493016614,"stat":10,"client_type":1},
//{"uin":4054723112,"stat":10,"client_type":1},
//{"uin":404313364,"stat":20,"client_type":1},
//{"uin":32760643,"stat":10,"client_type":1},
//{"uin":4030363264,"stat":50,"client_type":1},
//{"uin":1518452398,"stat":10,"client_type":1},
//{"uin":20415785,"stat":10,"client_type":1},
//{"uin":924992046,"stat":10,"client_type":1},
//{"uin":2053761603,"stat":10,"client_type":1},
//{"uin":2656238480,"stat":10,"client_type":1}],

//"cards":[{"muin":567718161,"card":"涂惠"},
//{"muin":1550532843,"card":"吕敏琪"},
//{"muin":2996143490,"card":"黄河"},
//{"muin":1900646994,"card":"殷丹"},
//{"muin":2635963960,"card":"谭亚辉"},
//{"muin":2794834450,"card":"许伟奇"},
//{"muin":3843984648,"card":"李栋"},
//{"muin":157305847,"card":"朱敏"},
//{"muin":419574975,"card":"赵丽诗"},
//{"muin":251269684,"card":"聂锦"},
//{"muin":1198471252,"card":"刘艳"},
//{"muin":84028737,"card":"陈龙"},
//{"muin":2493016614,"card":"Mody"},
//{"muin":924992046,"card":"李俊芳"},
//{"muin":4030363264,"card":"陈晓峰"},
//{"muin":674364208,"card":"向彬彬"},
//{"muin":2575498892,"card":"陈锦升"},
//{"muin":4054723112,"card":"周承建"},
//{"muin":342471680,"card":"吕晟"},
//{"muin":504386323,"card":"杨鹏"},
//{"muin":32760643,"card":"胡琪"},
//{"muin":87820977,"card":"龚世伟"},
//{"muin":1780089063,"card":"王玉红"},
//{"muin":1027484142,"card":"马金龙"},
//{"muin":2053761603,"card":"方湘鄂"},
//{"muin":2656238480,"card":"马双全"},
//{"muin":20415785,"card":"feiazi"},
//{"muin":404313364,"card":"王晓飞"}]}
//</script>